package studentinformationmanagementsystem.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 苗庆
 * @version 1.0
 * 选课临时班级表实体类
 */
public class TemporaryClassTable implements Serializable {

    private static final long serialVersionUID = 1L;

    //选课临时班级表id
    private Integer temporaryclasstableid;
    //教师任课表id
    private Integer teachersschedulesid;
    //上课人数
    private Integer numberofpeople;

    public TemporaryClassTable() {
    }

    public TemporaryClassTable(Integer temporaryclasstableid, Integer teachersschedulesid, Integer numberofpeople) {
        this.temporaryclasstableid = temporaryclasstableid;
        this.teachersschedulesid = teachersschedulesid;
        this.numberofpeople = numberofpeople;
    }

    @Override
    public String toString() {
        return "TemporaryClassTable{" +
                "temporaryclasstableid=" + temporaryclasstableid +
                ", teachersschedulesid=" + teachersschedulesid +
                ", numberofpeople=" + numberofpeople +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TemporaryClassTable that = (TemporaryClassTable) o;
        return temporaryclasstableid.equals(that.temporaryclasstableid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(temporaryclasstableid);
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTemporaryclasstableid() {
        return temporaryclasstableid;
    }

    public void setTemporaryclasstableid(Integer temporaryclasstableid) {
        this.temporaryclasstableid = temporaryclasstableid;
    }

    public Integer getTeachersschedulesid() {
        return teachersschedulesid;
    }

    public void setTeachersschedulesid(Integer teachersschedulesid) {
        this.teachersschedulesid = teachersschedulesid;
    }

    public Integer getNumberofpeople() {
        return numberofpeople;
    }

    public void setNumberofpeople(Integer numberofpeople) {
        this.numberofpeople = numberofpeople;
    }
}
